@ echo off
%1 %2
ver|find "5.">nul&&goto :Admin
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :Admin","","runas",1)(window.close)&goto :eof
:Admin


:: 切换目录
cd "%~dp0/dist/"  
:: 执行in_service.exe
"in_service.exe"
@echo ------------------install  start-------------------------!

:: 停止服务
net stop LiBoss
:: 删除服务
sc delete LiBoss
:: 注册服务
"%~dp0/dist/li-boss-service.exe"  install
:: 启动服务
net start LiBoss

@echo ------------------install  ok----------------------------!

